package com.mygame.message.msg.game;

import com.mygame.message.msg.AbstractJsonGameMessage;
import com.mygame.common.msg.MessageType;
import com.mygame.message.msg.GameMessageMetadata;
import com.mygame.message.msg.game.ConnectionStatusMsgRequest.MessageBody;
@GameMessageMetadata(messageId=2,messageType= MessageType.REQUEST,serviceId=1)
public class ConnectionStatusMsgRequest extends AbstractJsonGameMessage<MessageBody> {

    public static class MessageBody {
       
        private boolean connect;//true是连接成功，false是连接断开
        public boolean isConnect() {
            return connect;
        }

        public void setConnect(boolean connect) {
            this.connect = connect;
        }

    }

    @Override
    protected Class<MessageBody> getBodyObjClass() {
        return MessageBody.class;
    }


}
